﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserCode.aspx.cs" Inherits="Myproject.BSM.Base.Other.UserCode" %>

<div class="bjui-pageHeader">
    <div class="bjui-searchBar">
        <ul class="breadcrumb">
          <li><a><i class="fa fa-university"></i> 后台管理中心</a></li>
          <li><a><i class="fa fa-desktop"></i> 电脑端管理</a></li>
          <li class="active"><a><i class="fa fa-file-text-o"></i> 基本信息</a></li>
        </ul>
    </div>
</div>
<div class="bjui-pageContent">
    <table class="table table-condensed table-hover" width="100%">
            <tbody>
                <tr>
                    <td>
                        <label class="control-label x85">姓名：</label>
                        <input type="text" name="name" id="base_other_usercode_name" value="" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">手机：</label>
                        <input type="text" name="phone" id="base_other_usercode_phone" value="" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">邮箱：</label>
                        <input type="text" name="email" id="base_other_usercode_email" value="" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">单位：</label>
                        <input type="text" name="comp" id="base_other_usercode_comp" value="常熟法艾" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85"><button type="button" id="base_other_usercode_btn" class="btn-green" data-icon="qrcode">生成</button></label>[填写内容越复杂，生成二维码越复杂，影响二维码扫描读取]
                    </td>
                </tr>
                <tr style="display:none;" id="base_other_usercode_imgtr" >
                    <td>
                        <img id="base_other_usercode_img"  src=""/><br /><label class="control-label">    鼠标右击保存图片</label>
                    </td>
                </tr>
            </tbody>
        </table>
</div>
<div class="bjui-pageFooter">
</div>
<script>
    $("#base_other_usercode_btn").click(function () {
        $("#base_other_usercode_img").attr("src", "http://qr.topscan.com/api.php?text=mecard:tel:" + $("#base_other_usercode_phone").val() + ";email:" + $("#base_other_usercode_email").val() + ";n:" + $("#base_other_usercode_name").val() + ";org:" + $("#base_other_usercode_comp").val() + ";");
        $("#base_other_usercode_imgtr").show();
    });
</script>